//
//  ZTMEViewController.m
//  项目练习
//
//  Created by 张江涛 on 15/11/30.
//  Copyright © 2015年 张江涛. All rights reserved.
//

#import "ZTMEViewController.h"
#import "ZTSettingViewController.h"



@interface ZTMEViewController ()

@end

@implementation ZTMEViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   self.title =@"我的";
    
    
    
    UIBarButtonItem *seetingItem = [UIBarButtonItem   itemWithImage:@"mine-setting-icon" highImage:@"mine-setting-icon-click" traget:self action:@selector(seetingItemClick)];
    UIBarButtonItem *moonItem = [UIBarButtonItem  itemWithImage:@"mine-moon-icon" highImage:@"mine-moon-icon-click" traget:self action:@selector(moonItemClick)];
   
    self.navigationItem.rightBarButtonItems = @[seetingItem, moonItem];
    
  
}

//设置按钮点击的监听
- (void)seetingItemClick
{
    ZTSettingViewController *settingView = [[ZTSettingViewController alloc]init];
    settingView.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:settingView animated:YES];
}

- (void)moonItemClick
{
    ZTLongFunc;
}
@end
